package com.example.homework.db.repositories

import com.example.homework.db.apis.RetrofitService
import com.example.homework.db.models.Charact
import com.example.homework.db.models.Location

class LocationRepository {
    suspend fun getAll(page: Int): List<Location> {
        return RetrofitService.locationsApi.getAll(page).result
    }

    suspend fun getOne(id: Int): Location {
        return RetrofitService.locationsApi.getOne(id)
    }
}